<?php

class MY_Form_validation extends CI_Form_validation
{
    public function __construct()
    {
        parent::__construct();
    }

    public function alpha_dash_space($str)
    {  //$this IS CI_Form_Validation
        $this->set_message('alpha_dash_space', 'The %s field can only contain Alphabetical Characters, Spaces and Dashes.');
        return ( ! preg_match("/^([-a-z _-])+$/i", $str)) ? FALSE : TRUE;
    }
}

/* End of file MY_Form_validation.php */
/* Location: ./application/libraries/MY_Form_validation.php */